package cn.lili.modules.order.fallback;

import cn.lili.common.exception.ServiceException;
import cn.lili.modules.order.order.client.ReceiptClient;
import cn.lili.modules.order.order.entity.dos.Receipt;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: ftyy
 * @date: 2022-01-13 18:05
 * @description: 发票Fallback
 */
public class ReceiptFallback implements ReceiptClient {

    @Override
    public Receipt getByOrderSn(String orderSn) {
        throw new ServiceException();
    }

    @Override
    public Receipt getDetail(String id) {
        throw new ServiceException();
    }

    @Override
    public Receipt saveReceipt(Receipt receipt) {
        throw new ServiceException();
    }

    @Override
    public Receipt invoicing(String receiptId) {
        throw new ServiceException();
    }

    @Override
    public boolean saveBatch(List<Receipt> receipts) {
        throw new ServiceException();
    }
}
